package com.wys.spring.log;

import org.apache.ibatis.logging.Log;

import java.util.ServiceLoader;

//todo 此处后续可改成基于数据库或者文本来存取mybatis的Sql执行记录
public class SimpleLog implements Log {

    public SimpleLog(String c) {
        //fixme 基于SPI插件机制亦或是直接Log?
        //ServiceLoader.load()
    }


    @Override
    public boolean isDebugEnabled() {
        return true;
    }

    @Override
    public boolean isTraceEnabled() {
        return true;
    }

    @Override
    public void error(String s, Throwable e) {

    }

    @Override
    public void error(String s) {

    }

    @Override
    public void debug(String s) {

    }

    @Override
    public void trace(String s) {

    }

    @Override
    public void warn(String s) {

    }

}
